﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DM_Sqlite.Migrations
{
    public partial class odo : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_dw_sysauthority",
                table: "dw_sysauthority");

            migrationBuilder.RenameTable(
                name: "dw_sysauthority",
                newName: "dm_sysauthority");

            migrationBuilder.AddColumn<string>(
                name: "odo",
                table: "dm_props_user",
                type: "TEXT",
                maxLength: 255,
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddPrimaryKey(
                name: "PK_dm_sysauthority",
                table: "dm_sysauthority",
                column: "key");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_dm_sysauthority",
                table: "dm_sysauthority");

            migrationBuilder.DropColumn(
                name: "odo",
                table: "dm_props_user");

            migrationBuilder.RenameTable(
                name: "dm_sysauthority",
                newName: "dw_sysauthority");

            migrationBuilder.AddPrimaryKey(
                name: "PK_dw_sysauthority",
                table: "dw_sysauthority",
                column: "key");
        }
    }
}
